import numpy as np
import matplotlib.pyplot as plt

import rclpy
from rclpy.node import Node

class DataPlot(Node):
    def __init__(self):
        super().__init__("data_plot_node_py")
        self.get_logger().info("DataPlotNode is running")

    def clean_up(self):
        self.destroy_node()

def main(args=None):
    rclpy.init(args=args)
    data_plot_node = DataPlot()
    try:
        rclpy.spin(data_plot_node)
    except KeyboardInterrupt:
        print("Keyboard Interrupt (SIGINT)")
    finally:
        data_plot_node.clean_up()



if __name__ == "__main__":
    main()
